<template>
	<view class="login">
		<view class="text-align-center pt100">
			<text class="fs40" style="font-weight: 200;">登陆</text>
		</view>
		<view class="input">
			<view class="inner-shadow h100 flex flex-center mt50">
				<input type="text" v-model="formData.companyName" placeholder="username"/>
			</view>
			<view class="inner-shadow h100 flex flex-center mt50">
				<input type="password" v-model="formData.companyName" placeholder="password"/>
			</view>
		</view>
		<view class="text-align-right mt20">
			忘记密码？
		</view>
		<view class="drop-shadow mt20 ptb20 text-align-center">
			<text class="mr20">登陆</text>
			<u-icon name="arrow-rightward"></u-icon>
		</view>
	</view>
</template>

<script>
	import {
		apiLogin,
		test
	} from '@/api/basehttp.js'
	export default {
		data() {
			return {
				formData: {
					companyName: '',
					password: ''
				}
			}
		},
		methods: {
			login() {
				apiLogin({
					...this.formData
				}).then(res => {
					console.log('0', res)
				}).catch(err => {
					console.log('1', err)
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.login {
		color: $uni-text-color-grey;
		padding: 0 120rpx;
	}
</style>
